#include"../source/Socket.hpp"
#include<iostream>

int main(){
    Socket cli_sock;
    cli_sock.CreateClient(8888,"127.0.0.1");
    std::string str = " client hello,world!!!!! ";
    int second = 5;
    while(second--){
        cli_sock.Send(str.c_str(),str.size());
        char buf[1024];
        cli_sock.Recv(buf,1023);
        std::cout<<buf<<"地址："<<&buf<<std::endl;
        sleep(1);
    }
    for(int i=0;i<20;i++){
        std::cout<<"i:"<<i<<std::endl;
        sleep(1);
    }
    
    return 0;
}